package com.tsll.controller;

import com.tsll.utill.OssUtils;
import com.tsll.vo.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("/upLoad")
public class UpLoadController {
    @RequestMapping("/image")
    public Result upload(MultipartFile file){
        String s = OssUtils.uploadOss(file);
        return new Result(200,"上传成功",s);
    }

}
